#include "dwgrectangle.h"

DwgRectangle::DwgRectangle(QObject *parent)
    : DwgObject{parent}
{}
void DwgRectangle::Draw(QPainter *p)
{
    QPoint p3(p1.x(),p2.y()),p4(p2.x(),p1.y());
    p->drawLine(p1,p3);
    p->drawLine(p3,p2);
    p->drawLine(p2,p4);
    p->drawLine(p4,p1);
}
